﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IPasswordGenerator.cs" company="Marcin Jastrzebski">
//   Copyright (c) Marcin Jastrzebski (marcin@marcinj.net)
// </copyright>
// <summary>
//   Password Generator interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace mPassRT.Services
{
    using System.Threading.Tasks;

    /// <summary>Password Generator interface.</summary>
    public interface IPasswordGenerator
    {
        #region Public Methods and Operators

        /// <summary>Generates a password.</summary>
        /// <returns>A task that will produce a password or null if 
        /// password generation was cancelled</returns>
        Task<string> GeneratePasswordAsync();

        #endregion
    }
}